Get File Permissions
AutomatR.GoogleDrive.Activities.GetFilePermissions
The "Get File Permissions" activity in AutomatR is part of the Google Drive activities package, facilitating the retrieval of permissions associated with a specific file in Google Drive. This activity streamlines the process of obtaining detailed information about who has access to a particular file and their corresponding roles.
Properties
Name | Description |
---|---|
Input | |
File Name | Specifies the name of the file for which you want to retrieve permissions. String variables containing the file name. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Get File Permissions" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the delay is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Permissions | Outputs the permissions associated with the specified file. The information includes the role and type of each permission. Variables of relevant types to store the permissions data. |
How to use:
- Drag and drop the "Get File Permissions" activity onto the workflow.
- Configure the properties by specifying the file name for which you want to retrieve permissions.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to obtain detailed permissions information for the specified file in Google Drive.
Example: Consider an example where the "Get File Permissions" activity is used to retrieve permissions for a file named "Document.txt" in the user's Google Drive:
Get File Permissions:
Display Name: "Get Permissions for Document"
File Name: "Document.txt"
Permissions: filePermissions
In this example, the activity retrieves and outputs the permissions associated with the "Document.txt" file in the variable "filePermissions" for further handling in the workflow.